package com.server;

import com.entry.OrderForm;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

public interface OrderFormService {

    public int addOrderForm(String order_code,
                            String order_addres,
                            String order_receiver,
                            String mobile,
                            Date create_date,
                            int user_id,
                            int status,
                            String body,
                            int total_amount,
                            String subject);
    public int addAllOrderForm(String order_code,
                               String order_addres,
                            int order_posts,
                            String order_receiver,
                            String mobile,
                            String user_message,
                            Date create_date,
                            Date pay_date,
                            Date delivery_date,
                            int user_id,
                            Date confirm_date,
                            int status,
                            String body,
                            int total_amount,
                            String subject);
    public OrderForm getOrderFormByOrderCode(String order_code);

    //查询交易订单状态
    public List<OrderForm> getOrderSell(int user_id);
    //查询交易订单状态
    public List<OrderForm> getOrderSellandStatus(int user_id,int status);

    //更新商品状态
    public int updateOrderStatus(int status,String order_code);

    //删除订单
    public int deleteOrderForm(String order_code);

    //更新状态以及支付时间pay_date
    public int modifyOrderStatus_pay_date(int status,Date pay_date,String order_code);

    //更新状态以及确认时间confirm_date
    public int modifyOrderStatus_confirm_date(int status,Date confirm_date,String order_code);

}
